@import '~ant-design-vue/es/style/themes/default.less';

html,
body,
#app, #root {
  height: 100%;
}

.colorWeak {
  filter: invert(80%);
}

.ant-layout.layout-basic {
  height: 100vh;
  min-height: 100vh;
}

// 优化
.ant-pro-basicLayout-content {
  margin: 2px;
}

.ant-page-header.has-breadcrumb {
  background: #fff;
  padding: 16px 32px 0;
  border-bottom: 1px solid #e8e8e8;
}

.ant-pro-grid-content{
  .ant-card {
    .ant-card-head{
      padding: 0 8px;
    }
    .ant-card-body{
      padding: 18px;
    }
  }
}

canvas {
  display: block;
}

body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

ul,
ol {
  list-style: none;
}

// 数据列表 样式
.table-alert {
  margin-bottom: 16px;
}
// 数据列表 操作
.table-operator {
  margin-bottom: 18px;

  button {
    margin-right: 8px;
  }
}
// 数据列表 搜索条件
.table-page-search-wrapper {

  .ant-form-inline {
    .ant-form-item {
      display: flex;
      margin-bottom: 24px;
      margin-right: 0;

      .ant-form-item-control-wrapper {
        flex: 1 1;
        display: inline-block;
        vertical-align: middle;
      }

      > .ant-form-item-label {
        line-height: 32px;
        padding-right: 8px;
        width: auto;
      }
      .ant-form-item-control {
        height: 32px;
        line-height: 32px;
      }
    }
  }

  .table-page-search-submitButtons {
    display: block;
    margin-bottom: 24px;
    white-space: nowrap;
  }
}

@media (max-width: @screen-xs) {
  .ant-table {
    width: 100%;
    overflow-x: auto;
    &-thead > tr,
    &-tbody > tr {
      > th,
      > td {
        white-space: pre;
        > span {
          display: block;
        }
      }
    }
  }
}

.CodeMirror {
  border: 2px solid #eee;
  font-size: 13px;
  font-family: 'JetBrains Mono NL', Menlo, Monaco, Consolas, 'Lucida Console', 'Courier New', monospace;
  min-height: 100px;
  /* 支持上下拉伸 */
  resize: vertical;
  overflow: y !important;
}

.CodeMirror pre.CodeMirror-placeholder {
  color: #999;
}

// bootstrap表头颜色
.bootstrap-table .fixed-table-container .table thead th .th-inner {
  background-color: #EAEAEA
}

/* 修复bootstrap-table中显示数据时，若原数据包含了多个空格显示为一个空格的bug */
.bootstrap-table .fixed-table-container .table td {
  white-space: pre !important;
}

/* 修复因为设置white-space: pre !important;导致checkbox样式错乱的问题*/
.bootstrap-table .fixed-table-container .table .bs-checkbox label {
  margin-bottom: 0;
  white-space: initial;
}